package classUtils;

import org.springframework.util.ClassUtils;

/**
 * @program: pangu
 * @description:
 * @author: fengjd
 * @create: 2022-06-23 09:03
 **/
public class ClassUtilsTest {

    public static void main(String[] args) {

        /* 1.获取对象所有接口 */
        Class<?>[] allInterfaces = ClassUtils.getAllInterfaces(new User());

        /* 2.获取某个类的包名*/
        String packageName = ClassUtils.getPackageName(User.class);
        System.out.println(packageName);

        /*3.判断某类是否是内部类*/
//        System.out.println(ClassUtils.isInnerClass(User.class));

        /*4.判断对象是否是代理对象*/
        ClassUtils.isCglibProxy(new User());


    }
}
